//
//  ButtonCell.m
//  CoolTennisBall
//
//  Created by wenshl on 15/12/22.
//  Copyright © 2015年 CoolLang. All rights reserved.
//

#import "ButtonCell.h"

@implementation ButtonCell

- (IBAction)girlSelected:(UIButton *)sender {
    self.rightButton.selected = YES;
    self.leftButton.selected = NO;
    if (self.delegate && [self.delegate respondsToSelector:@selector(selectedHand:)]) {
        [self.delegate selectedHand:@"1"];
    }
}

- (IBAction)boySelected:(UIButton *)sender {
    self.rightButton.selected = NO;
    self.leftButton.selected = YES;
    if (self.delegate && [self.delegate respondsToSelector:@selector(selectedHand:)]) {
        [self.delegate selectedHand:@"0"];
    }
}

@end
